<?php
    $name = $column->getName();
    $key = $record->getKeyName();
?>
    <label class="custom-edit">
    <div class="field_text">
        <span><?= $record->$name ?></span>
        <a input-id="<?= $column->getId().'-'.$record->id ?>" primary-key = "<?= $record->getKeyName() ?>" 
            data-default='[{"name":"<?=$key?>", "value":<?= $record->$key ?>}, {"name":"<?= $name?>", "value": <?= $record->$name ?>}]' 
            href="javascript:void(0);" 
            class="icon-pencil" 
            onclick="permutationInput(this)">
        </a>
    </div>
</label>